package org.dromara.demo.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.demo.domain.TestDemo2Line;

/**
 * 测试主从业务对象 test_demo2_line
 */

@Data
@AutoMapper(target = TestDemo2Line.class, reverseConvertGenerate = false)
public class TestDemo2LineBo {

    /**
     * 父主键
     */
    private Long id;
    /**
     * 子主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long lineId;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 编码
     */
    private String code;
}
